package com.itrident.store;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author cxx
 * @create 2021-04-20 14:53
 **/
public class PropManger {
    private final Map<String,String> map = new ConcurrentHashMap<> ();

    public void add(String key,String val){
        if(val == null){
            map.remove (key);
            return;
        }
        map.put (key,val);
    }

    public void remove(String key){
        map.remove (key);
    }
    public String get(String key){
        return map.get (key);
    }
}
